from selenium.webdriver.common.by import By
class JobTransferManageLocator():


    # 登录标签
    login_click = (By.XPATH, '//a[text()="我的工作台"]')
    username_loc = (By.XPATH, '//input[@placeholder="请输入用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="请输入密码"]')
    # 登录按钮
    loginsbt = (By.XPATH, '//button[@onclick="loginVerify(1)"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[1]/button/i')

    # 退休管理菜单
    retirement = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[5]/span')

    # 离职管理菜单
    leave_management = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[4]/span')


    # 姓名输入框
    name = (By.XPATH, '//div[@class="site-content__wrapper"]//div/form/div[1]/div/div/div/input')



    # 退休类型下拉框
    retired_type = (By.XPATH, '//input[@placeholder="请选择退休类型"]')

    # 离休
    l1 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 名称输入框提示信息
    name_tips = (By.XPATH, '//div[contains(@x-placement,"-start")]/p')

    # 名称输入框为空提示
    name_none = (By.XPATH, '//div[@class="el-form-item__error"]')



    # 提示 确定按钮
    tips = (By.XPATH, '//div[@aria-label="提示"]/div/div[3]/button[2]/span')

    # 名称列表第一个定位
    list1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="亚瑟"]')

    # 离职管理列表第一个姓名标签
    list_name1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr/td[2]/div')

    # 备注
    note = (By.XPATH, '//textarea[@class="el-textarea__inner"]')

    # 备注字数标签
    note_tips = (By.XPATH, '//form[@class="el-form retire--foems"]/div[8]/div/span')

    # 上传附件input标签
    accessory = (By.XPATH, '//div[@class="upload-demo"]/div[1]/input')

    # 上传列表第一个
    file1 = (By.XPATH, '//div[@class="upload-demo"]/ul/li/a')

    # 系统提示信息
    system_tips = (By.XPATH, '//div[@role="alert"]/p')

    # 教职工信息管理应用
    teacher_manage = (By.XPATH, '//div[text()="教职工信息管理系统"]')

    # 离职
    departure = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]/table/tbody/tr[1]/td[12]/div/button[2]/span')

    # 退休
    retired = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]/table/tbody/tr[1]/td[12]/div/button[3]/span')

    # 列表第一个姓名标签
    list1_name = (By.XPATH, '//div[@class="el-card__body"]/div[6]/div[3]/table/tbody/tr[1]/td[3]/div/a')

    # 提示 确定按钮
    tip = (By.XPATH, '//div[@aria-label="提示"]/div/div[3]/button[2]/span')



    # 转岗管理菜单
    job_transfer = (By.XPATH, '//span[text()=" 岗位管理"]')

    # 转岗管理标签
    job_transfer_text = (By.XPATH, '//span[@role="link"]')

    # 添加转岗
    add_job_transfer = (By.XPATH, '//div[@class="el-card__body"]/div/div[2]/div[1]/div[1]/button/span')

    # 转岗时间标签
    label = (By.XPATH, '//label[text()="转岗时间："]')

    # 转岗时间input标签
    job_transfer_time = (By.XPATH, '//input[@placeholder="请选择转岗时间"]')

    # 岗位类别下拉框
    job_category = (By.XPATH, '//input[@placeholder="请选择岗位类别"]')

    # 管理岗位
    manage_job = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="管理岗位"]')

    # 教师岗位
    teacher_job = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="教师岗位"]')

    # 岗位等级下拉框
    job_level = (By.XPATH, '//input[@placeholder="请选择岗位等级"]')

    # 管理二级
    manage_secondary = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="管理二级"]')

    # 确定按钮
    sure = (By.XPATH, '//button[@class="el-button el-button--primary el-button--medium"]/span')

    # 取消按钮
    unsure = (By.XPATH, '//button[@class="el-button el-button--default el-button--medium"]/span')

    # 转岗时间提示标签
    job_transfer_time_tips = (By.CSS_SELECTOR, '[class="el-form-item__error"]')

    # 岗位类别提示标签
    job_transfer_type_tips = (By.XPATH, '//form[@class="el-form retire--foems"]/div[3]/div/div[2]')

    # 兼任任职时间选择框
    part_time_job_officetime = (By.XPATH, '//input[@placeholder="请选择兼任任职时间"]')

    # 转岗列表第一个兼任岗位任职时间
    time1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[9]/div')

    # 兼任岗位类别下拉框
    part_time_job_type = (By.XPATH, '//input[@placeholder="请选择兼任岗位类别"]')

    # 兼任岗位类别下拉框三角符
    s1 = (By.XPATH, '//form[@class="el-form retire--foems"]/div[6]/div/div/div/span')

    # 转岗列表第一个兼任岗位类别
    type1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[7]/div')

    # 兼任岗位等级下拉框
    post_grades = (By.XPATH, '//input[@placeholder="请选择兼任岗位等级"]')

    # 兼任岗位等级无数据标签
    empty = (By.XPATH, '//div[contains(@x-placement,"-start")]/p')

    # 转岗列表第一个兼任岗位等级
    grades1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[8]/div')

    # 下拉框清除按钮
    clear_box = (By.XPATH, '//i[@class="el-select__caret el-input__icon el-icon-circle-close"]')

    # 薪级管理菜单
    salary_level_manage = (By.XPATH, '//div[@id="tab-second"]')

    # 添加薪级
    add_salary = (By.XPATH, '//div[@id="pane-second"]/div[1]/button/span')

    # 列表薪级标题
    list_tips = (By.XPATH, '//div[@id="pane-second"]/div[2]/div[2]/table/thead/tr/th[4]/div')

    # 变更时间标签
    change_time_label = (By.XPATH, '//label[@for="changeDate"]')

    # 变更时间下拉框input标签
    change_time = (By.XPATH, '//input[@placeholder="请选择变更时间"]')

    # 薪级下拉框
    salary_level = (By.XPATH, '//input[@placeholder="请选择薪级"]')

    # 薪级8级
    level_8 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 变更时间为空提示
    change_time_none = (By.XPATH, '//div[@class="el-form-item is-error is-required el-form-item--medium"]/div/div[2]')

    # 薪级为空提示
    salary_level_none = (By.XPATH, '//div[@class="el-form-item is-error is-required el-form-item--medium"]/div/div[2]')

    # 薪级管理备注字数标签
    note_tips1 = (By.XPATH, '//form[@class="el-form retire--foems"]/div[4]/div/span')



